package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Tang
 * @date 2023/2/20
 */
@EnableTransactionManagement    //作用：开启事务注解功能
@ServletComponentScan           //作用：扫描@WebFilter注解，将其修饰的过滤器交由spring容器管理
@MapperScan("com.itheima.dao")  //作用：扫描com.itheima.dao包下的所有接口，并为dao生成代理对象交由容器管理
@Slf4j
@SpringBootApplication
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动完成！");
    }
}
